<!--
  ~ Copyright 2021 Apollo Authors
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  ~
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <title>Apollo</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="keywords" content="apollo,configuration,server,java,microservice" />
  <meta name="description" content="A reliable configuration management system" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
  <meta name="google-site-verification" content="CuvYz6OxISNH7wdJsnS8oNtJJn9IP6k0zz5x6m9uXco" />

  <!-- theme -->
  <link rel="stylesheet" href="css/vue.css" title="vue" />
  <link rel="stylesheet" href="css/dark.css" title="dark" disabled />
  <link rel="stylesheet" href="css/buble.css" title="buble" disabled />
  <link rel="stylesheet" href="css/pure.css" title="pure" disabled />
  <style type="text/css">
    .sidebar-nav >ul >li.file p >a {
      font-size: 15px;
      font-weight: 700;
      color: #364149;
    }

    .sidebar-nav .folder {
      cursor: pointer;
    }
  </style>
</head>

<body>
  <div id="app">Loading ...</div>
  <script>
    window.$docsify = {
      alias: {
        '/': 'zh/README.md',
        '/zh/.*/_sidebar.md': '/zh/_sidebar.md',
        '/en/.*/_sidebar.md': '/en/_sidebar.md',
        '/zh/.*/_navbar.md': '/zh/_navbar.md',
        '/en/.*/_navbar.md': '/en/_navbar.md',
        '/zh/(.*)': 'zh/$1',
        '/en/(.*)': 'en/$1',
      },
      auto2top: true,
      // Only coverpage is loaded when visiting the home page.
      onlyCover: true,
      coverpage: true,
      loadSidebar: true,
      loadNavbar: true,
      mergeNavbar: true,
      maxLevel: 6,
      subMaxLevel: 5,
      name: 'Apollo',
      repo: 'https://github.com/ctripcorp/apollo/',
      search: {
        noData: {
          '/zh/': '没有结果!',
          '/en/': 'No results!',
          '/': '没有结果!',
        },
        paths: 'auto',
        placeholder: {
          '/zh/': '搜索',
          '/en/': 'Search',
          '/': '搜索',
        },
      },
      // click to copy.
      copyCode: {
        buttonText: {
          '/zh/': '点击复制',
          '/en/': 'Copy to clipboard',
          '/': 'Copy to clipboard',
        },
        errorText: {
          '/zh/': '错误',
          '/en/': 'Error',
          '/': 'Error',
        },
        successText: {
          '/zh/': '复制成功',
          '/en': 'Copied',
          '/': 'Copied',
        },
      },
      // docsify-pagination
      pagination: {
        crossChapter: true,
        crossChapterText: true,
      },
      plugins: [
        // Edit Document Button in each page
        function (hook, vm) {
          hook.beforeEach(function (html) {
            if (/githubusercontent\.com/.test(vm.route.file)) {
              url = vm.route.file
                .replace('raw.githubusercontent.com', 'github.com')
                .replace(/\/master/, '/blob/master')
            } else {
              url = 'https://github.com/ctripcorp/apollo/blob/master/docs/' + vm.route.file
            }
            var editHtml = '[:memo: Edit Document](' + url + ')\n\n'

            return editHtml
              + html
              + '\n\n----\n\n'
              + '<a href="https://docsify.js.org" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by docsify</a>'
          })
        },
      ],
    };
  </script>

  <script src="//cdn.jsdelivr.net/npm/docsify@4/lib/docsify.min.js"></script>

  <!-- plugins -->
  <!-- support search -->
  <script src="//cdn.jsdelivr.net/npm/docsify@4/lib/plugins/search.min.js"></script>
  <!-- Support docsify sidebar catalog expand and collapse -->
  <script src="//cdn.jsdelivr.net/npm/docsify-sidebar-collapse/dist/docsify-sidebar-collapse.min.js"></script>
  <!-- Medium's image zoom -->
  <script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
  <!-- Add a simple Click to copy button to all preformatted code blocks to effortlessly allow users to copy example code from your docs -->
  <script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script>
  <!-- docsify-pagination -->
  <script src="//cdn.jsdelivr.net/npm/docsify-pagination/dist/docsify-pagination.min.js"></script>

  <!-- code highlight -->
  <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-csharp.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-java.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-json.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-markdown.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-nginx.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-properties.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-sql.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-xml-doc.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-yaml.min.js"></script>
</body>

<script>
  var _hmt = _hmt || [];
  (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?d47d58dcc5ba5c0c7dccab29717379c6";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
  })();
</script>

</html>
